@import url("style-header.css");
@import url("style-footer.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #0e0e0f;
  color: #ffffff;
  line-height: 1.6;
  background-image: radial-gradient(
      ellipse 7000px 2700px at 50% 15%,
      rgba(255, 255, 255, 0.08) 5%,
      transparent 15%
    ),
    radial-gradient(
      ellipse at 90% 50%,
      rgba(255, 255, 255, 0.08) 2%,
      transparent 50%
    );
}

.container {
  max-width: 83.333vw;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-wrap: break-word;
}

/* Main Content */
.main {
  padding: 3rem 0;
}

.main-title {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

.main-title .highlight {
  position: relative;
  display: inline-block;
}

.main-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.375rem; /* 6px/16 */
  background-color: #ff250f;
  z-index: -1;
  transform: translateY(-0.875rem); /* 14px/16 */
  border-radius: 0.25rem; /* 4px/16 */
}

.description {
  max-width: 83.333vw;
  margin: 0 auto 3rem;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.7;
}

.description p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #898989;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 83.333vw;
  margin: 0 auto;
}

.product-card {
  background-color: #ffffff1a;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.product-header {
  display: flex;
  width: 100%;
  margin-bottom: 1rem;
}

.product-image {
  display: flex;
  width: 12.76vw;
  height: 10.625vw;
  background-color: #374151;
  border-radius: 0.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.product-image img {
  width: 12.76vw;
  height: 10.625vw;
  object-fit: cover;
}

.product-info {
  flex: 1;
}

.product-title {
  display: flex;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bullet-red {
  color: #ff250f;
  margin-right: 0.5rem;
}

.product-description {
  display: flex;
  color: #9e9e9e;
  font-size: 0.875rem;
  line-height: 1.4;
}

.product-specs {
  font-size: 0.875rem;
  color: #ffffff;
}

.spec-item {
  display: flex;
  margin-bottom: 0.25rem;
}

.spec-item strong {
  font-weight: 600;
}

/* Tablet - 768px i mniej */
@media (max-width: 768px) {
  .main-title .highlight::after {
    height: 0.3125rem; /* 5px */
    transform: translateY(-0.75rem); /* 12px */
    border-radius: 0.1875rem; /* 3px */
  }
}

/* Mobile - 480px i mniej */
@media (max-width: 480px) {
  .main-title .highlight::after {
    height: 0.25rem; /* 4px */
    transform: translateY(-0.625rem); /* 10px */
    border-radius: 0.125rem; /* 2px */
  }
}

/* Małe mobile - 360px i mniej */
@media (max-width: 360px) {
  .main-title .highlight::after {
    height: 0.1875rem; /* 3px */
    transform: translateY(-0.5rem); /* 8px */
  }
}

/* Tablet View (2 columns) */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-title {
    font-size: 2.5rem;
  }
}

/* Mobile View (1 column) */
@media (max-width: 768px) {
  .container {
    max-width: 95vw;
    padding: 0 0.5rem;
  }

  .main {
    padding: 2rem 0;
  }

  .main-title {
    font-size: 2rem;
  }

  .description,
  .product-grid {
    max-width: 95vw;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-header {
    display: grid;
    place-content: center;
    place-items: center;
    flex-direction: column;
  }

  .product-image {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 245px;
    height: 204px;
    aspect-ratio: 1/1;
  }

  .product-image img {
    width: 245px;
    height: 204px;
    object-fit: cover;
  }

  .product-card {
    padding: 1.25rem;
  }

  .product-title {
    font-size: 1.25rem;
  }
}

/* Small Mobile View */
@media (max-width: 480px) {
  .main-title {
    font-size: 1.75rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-description,
  .product-specs {
    font-size: 0.8125rem;
  }
}
